function remove(nlid){
	$('#myModal').modal('show');
	$.post("../asset/remove_NightLife.action",{"nightLife.nlid":nlid}, function(result) {
		if(result.msg=="succ"){
			$('#myModal').modal('hide');
			$("#alertinfo").html("生活区土地信息删除成功。");
			$("#closewin").bind("click",function(){
				$("#closewin").unbind("click");
				$('#myinfo').modal('hide');
				window.location.reload();
			});
			$('#myinfo').modal('show');
		}else{
			$('#myModal').modal('hide');
			$("#alertinfo").html(result.msg);
			$('#myinfo').modal('show');
		}
	});
}
function conditionExport(){
	var tdzh=$("#tdzh").val();
	var nlname=$("#nlname").val();
	var zdh=$("#zdh").val();
	window.location.assign("../asset/exportExcel_NightLife.action?nightLife.tdzh="+tdzh+"&nightLife.nlname="+nlname+"&nightLife.zdh="+zdh);
}
function allExport(){
	window.location.assign("../asset/exportExcel_NightLife.action");
}
function conditionPrint(){
	var tdzh=$("#tdzh").val();
	var nlname=$("#nlname").val();
	var zdh=$("#zdh").val();
	$("#print_nightlife").attr("src","../asset/print_NightLife.action?nightLife.tdzh="+tdzh+"&nightLife.nlname="+nlname+"&nightLife.zdh="+zdh);
}
function allPrint(){
	$("#print_nightlife").attr("src","../asset/print_NightLife.action");
}